# 导包
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
# 打开ecshop演示站
driver = webdriver.Chrome()
driver.get("https://ecshop.test2.shopex123.com/")
driver.maximize_window()   # 全屏显示
# 定位输入框 在输入框输入'资生堂'
driver.find_element(By.ID, "keyword").send_keys("资生堂")
# 定位点击搜索按钮,并点击
driver.find_element(By.CLASS_NAME, "btn_search").click()

# 关闭ecshop演示站
time.sleep(3)
driver.quit()